package com.kingschan.jeasytag.tag;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
 * <pre>
 * author kingschan
 * date:2013-3-2
 * 
 * <pre>
 */
public class EasyTag implements Serializable {
	private static final long serialVersionUID = 1L;
	private StringBuffer DEFINE_SCRIPT;
	private StringBuffer ONLOAD_SCRIPT;
	private Set<Class<?>> support;
	
	public EasyTag (){
		DEFINE_SCRIPT= new StringBuffer();
		ONLOAD_SCRIPT= new StringBuffer();
		support = new HashSet<Class<?>>();
	}

	/**
	 * appendDefindScript
	 * 
	 * @param script
	 */
	public void appendDefindScript(String script) {
		if (null == script) {
			return;
		}
		DEFINE_SCRIPT.append(script);

	}

	/**
	 *appendOnLoadScript
	 * [flag]
	 * @param script
	 */
	public void appendOnLoadScript(String script) {
		if (null == script) {
			return;
		}
		ONLOAD_SCRIPT.append(script);

	}
	/**
	 * appendSupport
	 * @param script
	 */
	public void appendSupport(Class<?> support){
		this.support.add(support);
	}

	public StringBuffer getDEFINE_SCRIPT() {
		return DEFINE_SCRIPT;
	}

	public void setDEFINE_SCRIPT(StringBuffer dEFINESCRIPT) {
		DEFINE_SCRIPT = dEFINESCRIPT;
	}

	public StringBuffer getONLOAD_SCRIPT() {
		return ONLOAD_SCRIPT;
	}

	public void setONLOAD_SCRIPT(StringBuffer oNLOADSCRIPT) {
		ONLOAD_SCRIPT = oNLOADSCRIPT;
	}

	public Set<Class<?>> getSupport() {
		return support;
	}

	public void setSupport(Set<Class<?>> support) {
		this.support = support;
	}

	

	
	
}
